package com.zp.business.entity.template.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.zp.common.core.entity.BaseEntity;
import com.zp.common.excel.annotation.ExcelDictFormat;
import com.zp.common.excel.convert.ExcelDictConvert;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * 模板主记录视图对象
 *
 * @author zhang peng
 * @ date 2024-04-08
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ExcelIgnoreUnannotated
public class TemplateMasterVo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 模板主记录id
     */
    @ExcelProperty(value = "模板主记录id")
    private String templateMasterId;

    /**
     * 0.套装1.处方2.医嘱3.检查4检验5.处置6.护士费用7固定费用8.包9.组
     */
    @ExcelProperty(value = "0.套装1.处方2.医嘱3.检查4检验5.处置6.护士费用7固定费用8.包9.组", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "template_type")
    private String type;

    /**
     * 权限：0全部1科室2个人
     */
    @ExcelProperty(value = "权限：0全部1科室2个人", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "template_authority_type")
    private String authorityType;

    /**
     * 模板主题名称
     */
    @ExcelProperty(value = "模板主题名称")
    private String title;

    /**
     * 模板主题拼音码
     */
    @ExcelProperty(value = "模板主题拼音码")
    private String titleInput;

    /**
     * 科室id
     */
    @ExcelProperty(value = "科室id")
    private String deptId;

    /**
     * 科室名称
     */
    @ExcelProperty(value = "科室名称")
    private String deptName;

    /**
     * 发药药房
     */
    @ExcelProperty(value = "发药药房")
    private String storageId;

    /**
     * Y--启用；N--不启用
     */
    @ExcelProperty(value = "Y--启用；N--不启用", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_yes_no")
    private String startFlag;

    /**
     * 机构id
     */
    @ExcelProperty(value = "机构id")
    private String orgId;

    /**
     * 诊疗项目、处方类型
     */
    private String itemClass;

    /**
     * 发药药房名称
     */
    private String storageName;

    /**
     * 模板创建人
     */
    private String userId;

    /**
     * 私有模板使用人
     */
    private String userName;

}
